package org.jeecg.modules.system.service.impl;

import org.jeecg.modules.system.entity.SysRegion;
import org.jeecg.modules.system.mapper.SysRegionMapper;
import org.jeecg.modules.system.service.ISysRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * @Description: voc_region
 * @Author: jeecg-boot
 * @Date:   2023-02-02
 * @Version: V1.0
 */
@Service
public class SysRegionServiceImpl extends ServiceImpl<SysRegionMapper, SysRegion> implements ISysRegionService {

    @Autowired
    private SysRegionMapper sysRegionMapper;

    @Override
    public List<Map<String, String>> getDictRegion(String pid) {
        return this.sysRegionMapper.getDictRegion("sys_region","name","name",pid);
    }
}
